<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>

    const beforeURL=encodeURI("http://127.0.0.1:5500/辅助案例/url转码.html");
    console.log(beforeURL);
    const href=decodeURI("http://127.0.0.1:5500/%E8%BE%85%E5%8A%A9%E6%A1%88%E4%BE%8B/url%E8%BD%AC%E7%A0%81.html");
    // console.log(href);
    


  </script>
</body>
</html>